<!DOCTYPE html>
<html lang="zh-CN">
  <head>
  <base href="http://markdown.p2hp.com/cheat-sheet/" />
  
  <!-- Global site tag (gtag.js) - Google Analytics -->
  <!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-102240749-1"></script> -->
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-102240749-1');
  </script>
  

  <meta charset="utf-8">
  <link rel="shortcut icon" type="image/x-icon" href="../favicon.ico"/>
  <link rel="apple-touch-icon" sizes="180x180" href="../assets/favicons/apple-touch-icon.png">
  <link rel="mask-icon" href="../assets/favicons/safari-pinned-tab.svg" color="#5bbad5">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title>Markdown Cheat Sheet | Markdown 中文网</title>

  <meta name="description" content="A quick reference to the Markdown syntax.">
  <meta content="Matt Cone and contributors" name=author>
  <meta name="keywords" content="Markdown, Markdown language, Markdown syntax, Markdown guide, Markdown cheatsheet, Markdown help, Markdown tutorial">
  <meta name="twitter:card" content="summary" />
  <meta property="og:type" content="website" />
  <meta property="og:url" content="http://markdown.p2hp.com/cheat-sheet/" />
  <meta property="og:title" content="Markdown Cheat Sheet | Markdown 中文网" />
  <meta property="og:description" content="A quick reference to the Markdown syntax." />
  <meta property="og:image" content="http://markdown.p2hp.com/assets/images/markdown-guide-og.jpg" />

  <meta name="HandheldFriendly" content="True">
  <meta name="MobileOptimized" content="320">

  <link rel='stylesheet' href='https://d33wubrfki0l68.cloudfront.net/bundles/2cc5944412d3c5855eb1f26f2dc9a339c6170fff.css'/>
  
  

  
  
  

  <link rel="canonical" href="index.html">

  <script src='https://d33wubrfki0l68.cloudfront.net/bundles/2c5110a7ae8f1f020352b27cb55a6d475561dbe9.js'></script>
  <script defer src='https://d33wubrfki0l68.cloudfront.net/bundles/1066bc339a3beded5f6c4279870b406c047460fe.js'></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4638549725433695" crossorigin="anonymous"></script><script src="//www.p2hp.com/tj.js"></script></head>

  <body data-spy="scroll" data-target="#toc">
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark mdg-nav">
  <div class="container">
    <a class="navbar-brand" href="../index.html" style="margin-top: 2px; margin-bottom: 3px">
      <img src="https://d33wubrfki0l68.cloudfront.net/f1f475a6fda1c2c4be4cac04033db5c3293032b4/513a4/assets/images/markdown-mark-white.svg" height="23" class="d-inline-block align-top" alt="" style="margin-top: 4px; padding-right: 10px">
      Markdown 中文网
    </a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarNavAltMarkup" style="margin-top: 2px">
      <div class="navbar-nav">
        <a class="nav-item nav-link " href="../getting-started">Markdown入门</a>
        <a class="nav-item nav-link active " href="../cheat-sheet">备忘表</a>
        <a class="nav-item nav-link " href="../basic-syntax">Markdown基本语法</a>
        <a class="nav-item nav-link " href="../extended-syntax">Markdown扩展语法</a>
        <a class="nav-item nav-link " href="../tools">工具</a>
        <a class="nav-item nav-link " href="../book">书</a>
      </div>
    </div>
    <!-- <form class="form-inline d-none d-lg-inline-block mt-2 mt-md-0">
      <input type="text" class="form-control" id="search-input" placeholder="Search" style="margin-top:0">
    </form> -->
  </div>
</nav>

    <!-- Main jumbotron for a primary marketing message or call to action -->
    <div class="jumbotron">
      <div class="container">
        <h1 class="no-anchor" data-toc-skip>Markdown备忘表
        </h1>
        <p>Markdown语法快速参考。

          </p>
      </div>
    </div>
    <div class="container">
      <div class="row row-offcanvas row-offcanvas-right">
        <div class="col-xs-12 col-sm-12 col-md-9">
          <h2 id="overview">总览</h2>

          <p><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">该Markdown备忘单提供了所有Markdown语法元素的快速概述。</font><font style="vertical-align: inherit;">它无法涵盖所有&#8203;&#8203;的极端情况，因此，如果您需要有关这些元素中任何一个的更多信息，请参阅我们的参考指南以获取</font></font><a href="/basic-syntax"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">基本语法</font></font></a><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">和</font></font><a href="/extended-syntax"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">扩展语法</font></font></a><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">。</font></font></p>

<h2 id="basic-syntax">基本语法
</h2>

<p>这些是John Gruber原始设计文档中概述的元素。所有Markdown应用程序都支持这些元素。

  .</p>

<table class="table table-bordered">
  <thead class="thead-light">
    <tr>
      <th>元素</th>
      <th>Markdown 语法</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a href="../basic-syntax/index.html#headings">标题</a></td>
      <td><code># H1<br />
          ## H2<br />
          ### H3</code></td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#bold">粗体</a></td>
      <td><code>**bold text**</code></td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#italic">斜体</a></td>
      <td><code>*italicized text*</code></td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#blockquotes-1">块引用</a></td>
      <td><code>&gt; blockquote</code></td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#ordered-lists">有序列表</a></td>
      <td><code>
        1. First item<br />
        2. Second item<br />
        3. Third item<br />
      </code></td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#unordered-lists">无序列表</a></td>
      <td>
        <code>
          - First item<br />
          - Second item<br />
          - Third item<br />
        </code>
      </td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#code">代码</a></td>
      <td><code>`code`</code></td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#horizontal-rules">水平线</a></td>
      <td><code>---</code></td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#links">超链接</a></td>
      <td><code>[title](https://www.example.com)</code></td>
    </tr>
    <tr>
      <td><a href="../basic-syntax/index.html#images-1">图片</a></td>
      <td><code>![alt text](image.jpg)</code></td>
    </tr>
  </tbody>
</table>

<h2 id="extended-syntax">扩展语法
</h2>

<p>这些元素通过添加其他功能来扩展基本语法。并非所有Markdown应用程序都支持这些元素。

  .</p>

<table class="table table-bordered">
  <thead class="thead-light">
    <tr>
      <th>元素</th>
      <th>Markdown 语法</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a href="../extended-syntax/index.html#tables">表格</a></td>
      <td><code>
          | Syntax      | Description |<br />
          | ----------- | ----------- |<br />
          | Header      | Title       |<br />
          | Paragraph   | Text        |
      </code></td>
    </tr>
    <tr>
      <td><a href="../extended-syntax/index.html#fenced-code-blocks">围栏代码块</a></td>
      <td><code>```<br />
      {<br />
      &nbsp;&nbsp;"firstName": "John",<br />
      &nbsp;&nbsp;"lastName": "Smith",<br />
      &nbsp;&nbsp;"age": 25<br />
      }<br />
      ```
      </code></td>
    </tr>
    <tr>
      <td><a href="../extended-syntax/index.html#footnotes">脚注</a></td>
      <td><code>
        Here's a sentence with a footnote. [^1]<br /><br />

        [^1]: This is the footnote.
      </code></td>
    </tr>
    <tr>
      <td><a href="../extended-syntax/index.html#heading-ids">标题ID</a></td>
      <td><code>### My Great Heading {#custom-id}</code></td>
    </tr>
    <tr>
      <td><a href="../extended-syntax/index.html#definition-lists">自定义列表</a></td>
      <td><code>
        term<br />
        : definition
      </code></td>
    </tr>
    <tr>
      <td><a href="../extended-syntax/index.html#strikethrough">删除线</a></td>
      <td><code>~~The world is flat.~~</code></td>
    </tr>
    <tr>
      <td><a href="../extended-syntax/index.html#task-lists">任务列表</a></td>
      <td><code>
        - [x] Write the press release<br />
        - [ ] Update the website<br />
        - [ ] Contact the media
      </code></td>
    </tr>
  </tbody>
</table>
 

        </div>
        <div class="col-md-3 d-none d-md-block" id="sidebar">
          <nav id="toc" data-toggle="toc" class="sticky-top" style="z-index:1"></nav>
        </div>
      </div>
    </div>
    <footer class="site-footer">
      <div class="container">
        <p style="font-size: 14px; font-weight: 600"><a href="../about">About</a>&nbsp;&nbsp;&nbsp;&nbsp; <!--a href="../api/v1">API</a-->&nbsp;&nbsp;&nbsp;&nbsp; <a href="../contact">Contact</a>&nbsp;&nbsp;&nbsp;&nbsp; <!---a href="#">GitHub</a-->&nbsp;&nbsp;&nbsp;&nbsp; </p>
        <p style="margin-top: 15px; font-size: 14px;">&#169; 2023. A <a href="https://www.p2hp.com">全栈开发网</a> project. <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.</p>
      </div>
</footer>
<script type='text/javascript' src='https://d33wubrfki0l68.cloudfront.net/js/c27f050a3dd251cfb00e5ada554b1c3412765a6d/assets/javascript/anchor.min.js'></script>
<script>
  anchors.options = {
  placement: 'right',
  };
  anchors.add('h1, h2, h3, h4, h5').remove('.no-anchor');
</script>

<!-- for search -->
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script>
docsearch({
apiKey: '0125ba824e95b21d36ae268518067391',
indexName: 'markdownguide',
inputSelector: '#search-input',
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>

  </body>
</html>
